"""
  Created by Amor on 2018-08-27
"""
import time
from random import Random

__author__ = '骆杨'


def get_order_sn(user_id):
    # 当前时间+user_id+随机数
    time_str = time.strftime('%Y%m%d%H%M%S')
    random_ins = Random().randint(10, 99)
    return "{}{}{}".format(time_str, user_id, random_ins)


if __name__ == '__main__':
    print(get_order_sn(1))
